<?php
include_once '../common_mbs.inc.php';
include_once '../smarty.inc.php';

//判断访问权限
$admin_index_module_obj = new osgh_admin_index_module_cls();
$is_warrant = $admin_index_module_obj->is_have_warrant($_ADMIN_ID,'news_list');
if(!$is_warrant) tcmc_cls::ShowMsg("没有权限访问！", "../index_body.html");

$act = trim($_INPUT['action']);

$news_type_obj = new news_type_cls();
$typelist = $news_type_obj->get_news_type_list(false, $where_str, '', '');
$smarty->assign('typelist',$typelist);


if($act == 'edit')
{
	$news_id = $_INPUT['news_id'];
	$news_obj = new news_cls();
	$news_arr = $news_obj->get_news_info($news_id);
	$smarty->assign('news_arr' ,$news_arr);
}

$smarty->display('news/save_news.tpl');

?>
